//
//  GameScene.cpp
//  identist
//
//  Created by Ethan on 14-2-27.
//
//

#include "GameScene.h"
#include "StaticData.h"

GameScene::~GameScene()
{
    
}

void GameScene::preloadResources()
{

}

bool GameScene::init()
{
    bool pRet = false;
    do {
        
        CC_BREAK_IF(!CCScene::init());
        
        this->preloadResources();
        
        _backgroundLayer = BackgroundLayer::create();
        
        this->addChild(_backgroundLayer);
        
        CCUserDefault::sharedUserDefault()->setStringForKey("level", "1-1");
        CCUserDefault::sharedUserDefault()->flush();
        
        _gameLayer = GameLayer::create();
        
        this->addChild(_gameLayer);
        
        pRet = true;
    } while (0);
    return pRet;
}
